package com.wjq.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjq.boot.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author wangjiaquan
 * @since 2024-08-07
 */
public interface RoleService extends IService<Role> {

    Boolean fixState(Long id,Boolean state);

    Page<Role> getTargetPage(Integer pageNo,Integer pageSize,String keyword);

    Boolean add(String name, String description, MultipartFile file) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    Boolean check(Long id,String value,String column);

    Boolean update(Long id,String name,String description,MultipartFile file,String icno) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
}
